package com.mingmen.canting.personal;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.FragmentActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.mingmen.canting.R;
import com.mingmen.canting.immersionbar.ImmersionBar;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class PersonalSettingsActivity extends FragmentActivity {

    @BindView(R.id.text_return)
    TextView textReturn;
    @BindView(R.id.img_right)
    ImageView imgRight;
    @BindView(R.id.tv_right)
    TextView tvRight;

    @BindView(R.id.mToolbar)
    Toolbar mToolbar;
    @BindView(R.id.text_center)
    TextView text_center;
    @BindView(R.id.linear_return)
    LinearLayout linear_return;
    @BindView(R.id.layout_shenhe)
    LinearLayout layout_shenhe;
    @BindView(R.id.layout_centerNotice)
    LinearLayout layout_centerNotice;
    @BindView(R.id.layout_ribao)
    LinearLayout layout_ribao;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_personalsettings);
        ButterKnife.bind(this);
        text_center.setText("我的");
        ImmersionBar.with(this).titleBar(mToolbar)
                .navigationBarColor(R.color.black).init();

    }


    @OnClick({R.id.text_return, R.id.img_right, R.id.tv_right, R.id.linear_return, R.id.layout_shenhe, R.id.layout_centerNotice, R.id.layout_ribao})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.text_return:
            case R.id.linear_return:
                finish();

                break;
            case R.id.img_right:
                break;
            case R.id.tv_right:
                break;
            case R.id.layout_shenhe:
                startActivity(new Intent(PersonalSettingsActivity.this, PersonalShenHeActivity.class));
                break;
            case R.id.layout_centerNotice:
                startActivity(new Intent(PersonalSettingsActivity.this, PersonalNoticeListActivity.class));
                break;
            case R.id.layout_ribao:
                startActivity(new Intent(PersonalSettingsActivity.this, DailyListActivity.class));
                break;
        }
    }

}
